// PcDlg.cpp : implementation file
//

#include "stdafx.h"
#include "resourcemakeDlg.h"
#include "CfgPcDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CCfgPcDlg dialog


CCfgPcDlg::CCfgPcDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CCfgPcDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCfgPcDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CCfgPcDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCfgPcDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CCfgPcDlg, CDialog)
	//{{AFX_MSG_MAP(CCfgPcDlg)
	ON_BN_CLICKED(IDC_RADIOPC1, OnRadiopc1)
	ON_BN_CLICKED(IDC_RADIOPC2, OnRadiopc2)
	ON_BN_CLICKED(IDC_RADIOPC3, OnRadiopc3)
	ON_BN_CLICKED(IDC_RADIOPC4, OnRadiopc4)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CCfgPcDlg message handlers

BOOL CCfgPcDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	((CButton*)GetDlgItem(IDC_RADIOPC1))->SetCheck(TRUE);   
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CCfgPcDlg::OnRadiopc1() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =800;
	pDlgBase->height = 600;
}

void CCfgPcDlg::OnRadiopc2() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =1024;
	pDlgBase->height = 768;
}

void CCfgPcDlg::OnRadiopc3() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =1280;
	pDlgBase->height = 800;
}

void CCfgPcDlg::OnRadiopc4() 
{
	// TODO: Add your control notification handler code here
	CDialogbase* pDlgBase = (CDialogbase*)GetParent();

	pDlgBase->width =1280;
	pDlgBase->height = 960;
}
